package top.raoqq.sky.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.raoqq.sky.enums.SkyResponseEnum;

/**
 * 业务异常
 * @author 饶奇奇
 * @date 2023/8/7
 */
@Data
public class BizException extends RuntimeException {
    protected SkyResponseEnum reason;

    public BizException(SkyResponseEnum reason) {
        super(reason.getMessage());
        this.reason = reason;
    }

}
